<template>
	<view>
		<view class="wrap">
			<u-navbar title="我的油卡" back-icon-color="#333"></u-navbar>
			<!-- <view class="">
				<u-tabs-swiper :is-scroll="false" bar-height="100" bar-width="40" active-color="#2979ff"
					inactive-color="#303133" :current="current" swiper-width="200000" @change="tabsChange" ref="tabs"
					:list="list"></u-tabs-swiper>
			</view>
			<swiper class="swiper-box" :current="current" @transition="transition" @animationfinish="animationfinish">
				<swiper-item class="swiper-item">

					<view class="wrap-count">
						<view class="">
							<view class="">
								<view>{{ordercoutObj.sumORMTB440CA10||0}}</view>
								<text>笔数</text>
							</view>
							<view class="wrap-count-money">
								<view v-if="AuthorizationOBJ.ORMTB417CA06==0">***</view>
								<view v-else>{{ordercoutObj.sumORMTB440CA11||0}}</view>
								<text>金额</text>
							</view>
						</view>
					</view>
				</swiper-item>
				<swiper-item class="swiper-item">
					<view class="wrap-count">
						<view class="">
							<view class="">
								<view>{{ordercoutObj.sumORMTB440CA10||0}}</view>
								<text>交易笔数</text>
							</view>
							<view class="wrap-count-money">
								<view v-if="AuthorizationOBJ.ORMTB417CA06==0">***</view>
								<view v-else>{{ordercoutObj.sumORMTB440CA11||0}}</view>
								<text>金额</text>
							</view>


							<view class="wrap-count-money">
								<view v-if="AuthorizationOBJ.ORMTB417CA06==0">***</view>
								<view v-else>{{ordercoutObj.sumORMTB440CA11||0}}</view>
								<text>余额</text>
							</view>
						</view>
					</view>
				</swiper-item>
			</swiper> -->
			<view class="wrap-count"
				style="background: #0099ff;color: #fff; border-radius: 10rpx; margin-top: 20rpx; display: flex; justify-content: space-between;">
				<!-- <text>统计</text> -->
				<view class="" style="font-weight: bold;">
					<view class="">
						<view>加油金（元）</view>
					</view>
					<view class="" style="padding-top: 10rpx; font-size: 40rpx;">
						<view>{{jyj}}</view>
					</view>

				</view>
				<view class="" style="font-weight: bold;">
					<view class="">
						<view>
							<u-button @click="jymFun" type="success" style="font-size: 40rpx;">加油码</u-button>
						</view>
					</view>

					<!-- <view class="" style="margin-top: 30rpx;">
						<view>
							<u-button @click="jyjsqListFun" type="warning" size="mini" style="font-size: 30rpx;">加油金授权</u-button>
						</view>
					</view> -->

				</view>

			</view>
			<view @click="jyjsqFun()" class="wrap-count"
				style="border-radius: 0; margin-top: 0; border-bottom: 2rpx solid #E3E3E3;">
				<u-section title="申请加油金" :show-line="false" sub-title="申请" font-size="32"></u-section>
			</view>
			<view @click="jyjsqListFun()" class="wrap-count"
				style="border-radius: 0; margin-top: 0; border-bottom: 2rpx solid #E3E3E3;">
				<u-section title="预授权" :show-line="false" sub-title="去授权" font-size="32"></u-section>
			</view>
			<view @click="funykszmx()" class="wrap-count"
				style="border-radius: 0; margin-top: 0; border-bottom: 2rpx solid #E3E3E3;">
				<u-section title="收支明细" :show-line="false" sub-title="查看明细" font-size="32"></u-section>
			</view>
			<view @click="funykxqxx()" class="wrap-count"
				style="border-radius: 0; margin-top: 0; border-bottom: 2rpx solid #E3E3E3;">
				<u-section title="被授权信息" :show-line="false" sub-title="查看详情" font-size="32"></u-section>
			</view>

			<view class="" style="padding-top:30rpx;">
				<swiper class="swiper-box" style="height: 530rpx;" :current="current">
					<swiper-item class="swiper-item">
						<!-- @scrolltolower="reachBottom" -->
						<scroll-view scroll-y style="height: 100%;width: 100%;">
							<view class="page-box">
								<!-- @click="getopsxinxi(item)" -->
								<view @click="getopsxinxi(item)" class="order" v-for="(item, index) in orderList"
									:key="index">
									<view class="title u-line-2" style="color: #353535; font-size: 40rpx;">
										<text>{{item.ORMTB473CA00}}</text>

									</view>
									<view class="item" style="justify-content: space-between;">

										<view class="content">

											<view class="" style="color: #B3B3B3;">{{item.ORMTB473CA01}}</view>
											<!-- <u-button type="primary" class="btn_mid" >去看看</u-button> -->
											<view class="see-btn">
												<!-- <view class="see-btn-collection" @click="collCancelClick(item)"  v-if="item.SETTB403ID!=''">
													<text class="iconfont iconshoucang"></text>取消收藏
												</view> -->
												<view class="see-btn-collection"
													style="color:#D36D7C;font-size: 30rpx;">
													<!-- <text
														style="padding: 10rpx; background-color:#FEF4F3 ; border-radius: 10rpx;">飞砂走石价</text>
													<text style="padding:0 5rpx;font-weight: bold;">￥</text> -->
													<!-- <text
														style="font-size: 40rpx;font-weight: bold;">{{item.ORMTB473CA02}}</text>
													<text style="font-size: 24rpx; font-weight: bold;">/L</text> -->
													<text
														style="color: #8C8C8C;padding-left: 10rpx;">油站价￥{{item.ORMTB473CA09}}/L</text>

												</view>


											</view>

										</view>
										<view class="content">
											<view class="type"
												style="color: #949293; background-color: #F7F8FA;text-align: center; border-radius: 20rpx; display: flex; padding:0 10rpx;">
												<img :src="getStaticFilePath('/home/nav/nav-DW.png')" alt=""
													style="width: 40rpx;height: 40rpx; padding-top:10rpx;">
												<text>{{item.jl||'...'}}Km</text>
											</view>
											<view class="">
												<text style="color:#D36D7C ;">查看位置</text>
											</view>

										</view>

									</view>

									<view class="see-btn" style="display: flex; justify-content: end;"
										@click="goAndSee(item)">
										<view class="" style="">

										</view>
										<!-- <view class="see-btn-collection"
											style="margin-top:60rpx; width: 25%; margin-bottom: 20rpx; height:100%; background:#f2f2f2; justify-content: end; display: flex; border-radius: 10rpx;padding: 10rpx; text-align: center;">
											<view class="" style="">
												<text style="color:#2B2C2E;font-size: 32rpx;">加油码</text>
											</view>
											<view class="">
												<img style="width: 40rpx;height: 40rpx; padding-top: 4rpx;"
													:src="getStaticFilePath('/home/nav/nav-SJ.png')" alt="">
											</view>
			
										</view> -->
									</view>



								</view>
								<!-- <u-loadmore :status="loadStatus[0]" bgColor="#f2f2f2"></u-loadmore> -->
								<u-loadmore v-if="orderList.length!=0" :status="status" :icon-type="iconType"
									:load-text="loadText" />
								<view class="zanWSJ" v-if="orderList.length==0">
									<image :src="getStaticFilePath('/QXY/noData.png')" alt="">
								</view>
							</view>
						</scroll-view>
					</swiper-item>

				</swiper>
			</view>

		</view>



		<u-toast ref="uToast" />
	</view>
</template>

<script>
	import {
		checkOpenGPSServiceByAndroid
	} from '../../util/map.js';
	export default {
		data() {
			return {
				screeningshow: false,
				codeShow: false,
				type: '', // 1 派单时间 2 结算时间
				//订单列表
				orderList: [],
				current: 0, // tabs组件的current值，表示当前活动的tab选项
				swiperCurrent: 0, // swiper组件的current值，表示当前那个swiper-item是活动的
				list: [{
						name: '充值'
					},
					{
						name: '消费'
					}
				],
				status: 'loading',
				iconType: 'flower',
				loadText: {
					loadmore: '轻轻上拉',
					loading: '努力加载中',
					nomore: '实在没有了'
				},
				countpage: 1,
				page: 1,
				userinfo: JSON.parse(uni.getStorageSync('userinfo')),
				dataStatisCount: [],
				totalWeight: 0,
				totalAmount: 0,
				totalCarCount: 0,
				params: {
					year: true,
					month: true,
					day: true,
					hour: true,
					minute: true,
					second: true
				},
				year: '',
				systemInfo: uni.getSystemInfoSync(),
				navHeight: '',
				optionHeight: 35,
				enterpriseName: '全部',
				erpshow: false,
				erpId: '',
				erpcColumns: [],
				stattimeshow: false,
				endtimeshow: false,
				dateStartStr: '',
				dateEndStr: '',
				materName: '全部',
				matershow: false,
				materColumns: [],
				materId: '',
				carshow: false,
				carNumberName: '全部物料',
				carkeyword: '',
				carKeyWordshow: false,
				carList: [],
				binary: '',
				ordercoutObj: '',
				AuthorizationOBJ: '',
				queryCodeList: '',
				dateNowDayActive: false,
				dateYesterdayActive: false,
				dateNowMonthActive: false,
				dateLastMonthActive: false,
				datekjState: 0,
				jyj: '',
				location: {
					lat: 0,
					lng: 0,
				},
				objItem: {}
			};
		},
		onLoad() {

			// if (this.userinfo.sign == 'CUS-3') {
			// 	this.queryAuthorization()
			// }
			// var data = new Date()
			// this.year = data.getFullYear()

			this.systemInfo = uni.getSystemInfoSync()
			this.navHeight = this.systemInfo.platform == 'ios' ? 44 : 48;
			this.getOrderList();
			// this.getNowDay()

		},
		onShow: function() {
			console.log('App Show')
			this.page = 1
			this.countpage = 1
			this.queyrErp();
			// this.initPage();
			// getOrderList
			// this.queryList()
			// this.getOrderList();
			// this.getLocation()
		},
		onPullDownRefresh() {
			// this.page = 1
			// this.countpage = 1
			// // this.queryList()
			// this.dateStartStr = ''
			// this.dateEndStr = ''
			// if (this.userinfo.sign == 'CUS-3') {
			// 	this.queryAuthorization()
			// }
		},
		// onReachBottom() {
		// 	this.page++
		// 	if (this.page > this.countpage) return this.status = "nomore"
		// 	this.queryList()
		// },,
		methods: {

			//获取当前位置
			getLocation() {
				let location = {
					lat: 0,
					lng: 0,
				}
				return new Promise((reserve, reject) => { //因为获取位置是异步接口所以需要使用promise
					uni.getLocation({
						success(res) {
							console.log('res1111')
							location.lat = res.latitude
							location.lng = res.longitude,
								reserve(location);
							console.log(res.latitude, res.longitude)
						},
						fail(err) {
							reject(location); //获取失败则返回经纬坐标为0
						}
					})
				})
			},
			getopsxinxi(item) {
				console.log(item)
				checkOpenGPSServiceByAndroid()
				const latitude = item.ORMTB473CA05;
				const longitude = item.ORMTB473CA04;
				let txMapUrl =`https://apis.map.qq.com/tools/poimarker?type=0&marker=coord:${latitude},${longitude};title:${item.ORMTB473CA01};addr:${item.ORMTB473CA00}&key=${this.mapKey}&referer=myapp`;
				
				uni.navigateTo({
					url: `/pages/webmap/index?mapurl=${encodeURIComponent(txMapUrl)}`
				
				});
				// uni.navigateTo({
				// 	url:'/pages/webmap/index'
				// })
				
				
				
									
				// uni.openLocation({
				// 	latitude: latitude,
				// 	longitude: longitude,
				// 	scale: 10,
				// 	name: item.ORMTB473CA11,
				// 	address: item.ORMTB473CA01,
				// 	success: function(res) {
				// 		console.log(res)
				// 		console.log('success');
				// 	}
				// });
				
				// uni.navigateTo({
				// 	url:'/pages/webmap/index'
				// })
				
				// uni.getLocation({
				// 	type: 'gcj02', //返回可以用于uni.openLocation的经纬度
				// 	success: function(res) {
				// 		console.log(res)
				// 		const latitude = item.ORMTB473CA05;
				// 		const longitude = item.ORMTB473CA04;

					
				// 		uni.openLocation({
				// 			latitude: latitude,
				// 			longitude: longitude,
				// 			scale: 10,
				// 			name: item.ORMTB473CA11,
				// 			address: item.ORMTB473CA01,
				// 			success: function(res) {
				// 				console.log(res)
				// 				console.log('success');
				// 			}
				// 		});
				// 	}
				// });

			},


			// 油站列表
			getOrderList() {
				uni.showLoading({
					title: '请求中...',
					mask: true
				});
				uni.request({
					url: this.baseUrl + '/orm/ormtb473/selectPageList',
					method: 'POST',
					dataType: 'json',
					data: {
						// SETTB403CA00: this.userinfo.PERTB005ID,
						// ORMTB410ID: this.userinfo.ORMTB410ID,
						// ORMTB400ID: this.userinfo.ORMTB400ID, //一级客户ID
						// SETTB99CA00: '', //二级企业名称
						// SETTB100CA04: this.cityCode, //市代码
						page: this.page,
						limit: 10,
					},
					success: (res) => {

						uni.hideLoading();
						if (res.data.code == 200) {
							console.log(res)
							if (!res.data.data || res.data.data == null) {
								this.orderList = []
								this.page = 1
								this.countpage = 1
								return
							}

							// var data = res.data.data || []
							if (this.page > 1) {
								this.orderList = [...this.orderList, ...res.data.data]
								// this.orderList = this.orderList.concat(res.data.data)
							} else {
								this.orderList = res.data.data.list
								console.log(this.orderList)
								this.initPage()

								setTimeout(() => {
									this.orderList.forEach(item => {
										var s = this.distance(item.ORMTB473CA05, item
											.ORMTB473CA04) //调用计算方法（经度，纬度）传值
										this.$set(item, 'jl', s) //把距离存储到orderList中
									})

									// uni.hideLoading();
								}, 3000)


							}

						} else {
							this.orderList = []
							this.page = 1
							this.countpage = 1
							this.$refs.uToast.show({
								title: res.data.message,
								type: 'default',
								icon: false
							})
						}
						if (this.countpage == this.page) {
							this.status = "nomore"
						} else {
							this.status = "loadmore"
						}
						this.countpage = Math.ceil(res.data.count / 10)

						// this.getCollectionList();
					},
					fail: (res) => {
						if (this.countpage == this.page) {
							this.status = "nomore"
						} else {
							this.status = "loadmore"
						}
						uni.hideLoading();
						this.$refs.uToast.show({
							title: '服务器连接超时',
							type: 'default',
							icon: false
						})
					}
				});
			},

			// getList() {
			// 	this.orderList.forEach(item => {
			// 		var s = this.distance(item.ORMTB473CA05, item
			// 			.ORMTB473CA04) //调用计算方法（经度，纬度）传值
			// 		this.$set(item, 'jl', s) //把距离存储到orderList中
			// 	})
			// 	console.log(this.orderList)
			// },


			//根据经纬度计算距离
			distance(lat1, lng1) {
				var that = this;
				let latzb
				let lngzb
				console.log(that.location.lat, '111')

				if (that.location.lat == 0 && that.location.lng == 0) {
					console.log('无位置信息')
					latzb = 34.280633;
					lngzb = 113.526732;
				} else {
					console.log('有位置信息')
					latzb = that.location.lat;
					lngzb = that.location.lng;
				}

				// let lat2 = 34.273172;
				// let lng2 = 113.51351;
				let rad1 = lat1 * Math.PI / 180.0;
				let rad2 = latzb * Math.PI / 180.0;
				let a = rad1 - rad2;
				let b = lng1 * Math.PI / 180.0 - lngzb * Math.PI / 180.0;
				let s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(rad1) *
					Math.cos(
						rad2) * Math.pow(
						Math.sin(b / 2), 2)));
				s = s * 6378.137;
				s = Math.round(s * 10000) / 10000;
				s = s.toString();
				s = s.substring(0, s.indexOf('.') + 2);
				console.log('距离：', s);
				return s

			},
			async initPage() {
				let position = await this.getLocation()
				console.log(position)
				this.location.lat = position.lat
				this.location.lng = position.lng


			},

			queryAuthorization() { //查询子账户权限
				uni.showLoading({
					title: '加载中...',
					mask: true
				});
				uni.request({
					url: this.baseUrl + '/orm/ormtb417/selectAccess/' + this.userinfo.ORMTB417ID,
					method: 'GET',
					success: (res) => {
						console.log(res);
						uni.hideLoading();
						if (res.data.code == 200) {
							this.AuthorizationOBJ = res.data.data
						} else {
							this.$refs.uToast.show({
								title: res.data.message,
								type: 'default',
								icon: false
							})
						}
					},
					fail: (res) => {
						uni.hideLoading();
						this.$refs.uToast.show({
							title: '服务器连接超时',
							type: 'default',
							icon: false
						})
					}
				});
			},
			jyjsqFun() {
				// uni.navigateTo({
				// 	url: '/pages/jyjl/index'
				// })
				uni.navigateTo({
					url: '/pages/Collection/index?obj=' + encodeURIComponent(JSON.stringify(this.objItem))
				})

			},
			jymFun() {
				uni.navigateTo({
					url: '/pages/jym/index'
				})
			},
			funykxqxx() {
				uni.navigateTo({
					url: '/pages/jyjsqxx/index'
				})
			},
			jyjsqListFun() {
				uni.navigateTo({
					url: '/pages/jyjsqlist/index'
				})
			},
			funykszmx() {
				uni.navigateTo({
					url: '/pages/ykmx/index'
				})
			},
			reachBottom() {
				if (this.page == this.countpage) {
					return this.status = "nomore"
				}
				this.page++
				// this.queryList()
			},
			SOreturn(item) {
				if (this.AuthorizationOBJ.ORMTB417CA05 && this.AuthorizationOBJ.ORMTB417CA05 == 0) {
					uni.showToast({
						title: '您没有操作权限',
						duration: 5000,
						icon: 'none',
					});
					return
				}
				uni.navigateTo({
					url: '/pages/SOreceipt/index?ORMTB440ID=' + item.ORMTB440ID
				})
			},
			detiles(item) {
				uni.navigateTo({
					url: '/pages/SOdetiles/index?ORMTB440ID=' + item.ORMTB440ID + '&type=' + item.ORMTB440CF01
				})
			},
			tabsChange(index) {
				this.orderList = []
				this.page = 1
				this.countpage = 1
				this.current = index;
				this.ordercoutObj = ''
				this.dateStartStr = ''
				this.dateEndStr = ''
				this.type = ''
				this.queryList()
			},
			// swiper-item左右移动，通知tabs的滑块跟随移动
			transition(e) {
				let dx = e.detail.dx;
				this.$refs.tabs.setDx(dx);
			},
			// 由于swiper的内部机制问题，快速切换swiper不会触发dx的连续变化，需要在结束时重置状态
			// swiper滑动结束，分别设置tabs和swiper的状态
			animationfinish(e) {
				let current = e.detail.current;
				this.$refs.tabs.setFinishCurrent(current);
				if (this.current == current) {
					return
				}
				this.dateStartStr = ''
				this.dateEndStr = ''
				this.current = current;
				this.queryList()
			},
			screeningClose() {
				if (this.screeningIsInit == false) {
					console.log(111)
					var obj = JSON.parse(this.screeningObj)
					// this.dateStartStr = obj.dateStartStr
					// this.dateEndStr = obj.dateEndStr
					// this.enterpriseName = obj.enterpriseName
					this.erpId = obj.erpId
					// this.materName = obj.materName
					this.materId = obj.materId
				}
			},
			initChanged() {
				this.type = ''
				this.dateStartStr = ''
				this.dateEndStr = ''
				this.enterpriseName = '全部'
				this.materName = '全部'
				this.enterpriseName = '全部'
				this.carNumberName = '全部物料'
				this.erpId = ''
				this.materId = ''
			},
			sureSearch() {
				var nowDate = new Date();
				var startDate = new Date(this.dateStartStr.replace(/-/g, "/"));
				var endDate = new Date(this.dateEndStr.replace(/-/g, "/"));

				if (this.dateStartStr == '') {
					this.$refs.uToast.show({
						title: '请选择开始时间',
						type: 'default',
						icon: false
					})
					return
				}
				if (this.dateEndStr == '') {
					this.$refs.uToast.show({
						title: '请选择结束时间',
						type: 'default',
						icon: false
					})
					return
				}

				if (startDate > endDate) {
					this.$refs.uToast.show({
						title: '结束时间不能早于开始时间',
						type: 'default',
						icon: false
					})
					return
				}

				this.screeningIsInit = true
				this.screeningshow = false
				this.datekjState = 1
				this.dateNowDayActive = false
				this.dateYesterdayActive = false
				this.dateNowMonthActive = false
				this.dateLastMonthActive = false
				this.queryList()
			},
			sureSearch1() {
				this.screeningIsInit = true
				this.screeningshow = false
				this.carNumberName = this.materName
				this.queryList()
			},
			dateFtt(fmt, date) { //author: meizz
				var o = {
					"M+": date.getMonth() + 1, //月份 
					"d+": date.getDate(), //日 
					"h+": date.getHours(), //小时 
					"m+": date.getMinutes(), //分 
					"s+": date.getSeconds(), //秒 
					"q+": Math.floor((date.getMonth() + 3) / 3), //季度 
					"S": date.getMilliseconds() //毫秒 
				};
				if (/(y+)/.test(fmt))
					fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
				for (var k in o)
					if (new RegExp("(" + k + ")").test(fmt))
						fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k])
							.length)));
				return fmt;
			},

			//获取当前时间
			getNowDay() {
				var date = new Date().getTime();
				var Ming = new Date().getTime() + 24 * 60 * 60 * 1000;
				var data = this.dateFtt('yyyy-MM-dd', new Date(Ming))
				var enddata = this.dateFtt('yyyy-MM-dd', new Date(date))
				data = `${data} ${this.exchangeTiem||'00:00:00'}`
				enddata = `${enddata} ${this.exchangeTiem||'00:00:00'}`
				this.date = [enddata, data];
				console.log(this.date)
				this.datekjState = 0
				this.dateStartStr = ''
				this.dateEndStr = ''
				this.dateNowDayActive = true
				this.dateYesterdayActive = false
				this.dateNowMonthActive = false
				this.dateLastMonthActive = false
				this.queryList()
			},
			//获取昨天时间
			getYesterday() {
				var hms = new Date().getTime() - 24 * 60 * 60 * 1000;
				var Ming = new Date().getTime();
				var nowDay = this.dateFtt('yyyy-MM-dd', new Date(hms))
				var enddata = this.dateFtt('yyyy-MM-dd', new Date(Ming))
				nowDay = `${nowDay} ${this.exchangeTiem||'00:00:00'}`
				enddata = `${enddata} ${this.exchangeTiem||'00:00:00'}`
				this.date = [nowDay, enddata];
				this.datekjState = 0
				this.dateStartStr = ''
				this.dateEndStr = ''
				this.dateNowDayActive = false
				this.dateYesterdayActive = true
				this.dateNowMonthActive = false
				this.dateLastMonthActive = false
				this.queryList()
			},
			//获取当月时间
			sameMonth() {
				var date = new Date();
				var hms = date.setDate(1);
				var firstDay = this.dateFtt('yyyy-MM-dd', new Date(hms));
				firstDay = `${firstDay} ${this.exchangeTiem||'00:00:00'}`
				var nextdate = new Date().getTime() + 24 * 60 * 60 * 1000;
				var nextDay = this.dateFtt('yyyy-MM-dd', new Date(nextdate));
				nextDay = `${nextDay} ${this.exchangeTiem||'00:00:00'}`
				this.date = [firstDay, nextDay];
				// this.startTime = this.date[0];
				// this.endTime = this.date[1];
				this.datekjState = 0
				this.dateStartStr = ''
				this.dateEndStr = ''
				this.dateNowDayActive = false
				this.dateYesterdayActive = false
				this.dateNowMonthActive = true
				this.dateLastMonthActive = false
				this.queryList()
			},
			//获取上月时间
			lastMonth() {
				var nowdays = new Date();
				var year = nowdays.getFullYear();
				var month = nowdays.getMonth();
				var lastyear = year
				var lastmonth = month
				if (month == 0) {
					month = 12;
					year = year - 1;
				}
				if (month == 12) {
					lastmonth = 1
				} else {
					lastmonth = lastmonth + (1 * 1)
				}
				if (month < 10) {
					month = "0" + month;
				}
				if (lastmonth < 10) {
					lastmonth = "0" + lastmonth;
				}
				var firstDayOfPreMonth = year + "-" + month + "-" + "01";
				var firstDayOfPreMonth = `${year}-${month}-01 ${this.exchangeTiem||'00:00:00'}`;
				// var lastDay = new Date(lastyear, lastmonth, 0);
				let lastDayOfPreMonth = `${lastyear}-${lastmonth}-01 ${this.exchangeTiem||'00:00:00'}`;
				this.date = [firstDayOfPreMonth, lastDayOfPreMonth];
				this.datekjState = 0
				this.dateStartStr = ''
				this.dateEndStr = ''
				this.dateNowDayActive = false
				this.dateYesterdayActive = false
				this.dateNowMonthActive = false
				this.dateLastMonthActive = true
				this.queryList()
			},

			screeningTap() {
				this.screeningshow = true
				if (this.screeningIsInit == true) this.screeningIsInit = false
				var obj = {
					dateStartStr: this.dateStartStr,
					dateEndStr: this.dateEndStr,
					enterpriseName: this.enterpriseName,
					erpId: this.erpId,
					materName: this.materName,
					materId: this.materId,
				}
				this.screeningObj = JSON.stringify(obj)
			},
			erpcfirm(e) {
				this.enterpriseName = this.erpcColumns[e].cateName
				this.erpId = this.erpcColumns[e].id
				if (this.erpId == '') {
					return
				}
				this.queryGwcList()
			},
			tiemconfirm(e) {
				this.dateStartStr = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second
			},
			endtiemconfirm(e) {
				this.dateEndStr = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second
			},
			materfirm(e) {
				this.materName = this.materColumns[e].cateName
				this.materId = this.materColumns[e].id
			},
			valChange(val) {
				if (val == 'I') return
				if (val == 'O') return
				this.carkeyword += val;
				this.querycar()
			},
			backspace() {
				if (this.carkeyword.length) this.carkeyword = this.carkeyword.substr(0, this.carkeyword.length - 1);
				this.querycar()
			},
			carresultTap(item) {
				this.carNumberName = item
				this.carshow = false
				this.carkeyword = ''
				this.orderList = []
				this.page = 1
				this.countpage = 1
				this.ordercoutObj = ''
				this.dateStartStr = ''
				this.dateEndStr = ''
				this.queryList()
			},
			querycode(item) {
				uni.showLoading({
					title: '加载中...',
					mask: true
				});
				this.binary = ''
				uni.request({
					url: this.baseUrl + '/orm/ormtb440/getErwei',
					method: 'POST',
					dataType: 'json',
					data: {
						ORMTB400CA03: this.userinfo.ORMTB400CA03,
						ORMTB440CA23: item.ORMTB440CA23,
						ORMTB440ID: item.ORMTB440ID,
					},
					success: (res) => {
						console.log(res);
						uni.hideLoading();
						if (res.data.code == 200) {
							var data = res.data.data
							this.binary = 'data:image/png;base64,' + data.ORMTB440CA22
							this.queryCodeList = data
						} else {
							this.$refs.uToast.show({
								title: res.data.message,
								type: 'default',
								icon: false
							})
						}
					},
					fail: (res) => {
						console.log(res)
						uni.hideLoading();
						this.$refs.uToast.show({
							title: '服务器连接超时',
							type: 'default',
							icon: false
						})
					}
				});
			},
			querycar() {
				uni.showLoading({
					title: '加载中...',
					mask: true
				});
				this.carList = ['全部物料']
				if (this.userinfo.sign == 'CUS-1') {
					var ID = this.userinfo.ORMTB400ID
				} else if (this.userinfo.sign == 'CUS-2' || this.userinfo.sign == 'CUS-3') {
					var ID = this.userinfo.ORMTB410ID
				}
				uni.request({
					url: this.baseUrl + '/orm/ormtb440/selectWL',
					method: 'POST',
					dataType: 'json',
					data: {
						sign: this.userinfo.sign,
						SETTB402CA00: this.carkeyword,
						ID: ID,
					},
					success: (res) => {
						console.log(res);
						uni.hideLoading();
						if (res.data.code == 200) {
							var data = res.data.data || []

							data.unshift('全部物料')
							this.carList = data
						} else {
							this.$refs.uToast.show({
								title: res.data.message,
								type: 'default',
								icon: false
							})
						}
					},
					fail: (res) => {
						console.log(res)
						uni.hideLoading();
						this.$refs.uToast.show({
							title: '服务器连接超时',
							type: 'default',
							icon: false
						})
					}
				});
			},
			queyrErp() {
				uni.showLoading({
					title: '加载中...',
					mask: true
				});
				// this.enterpriseName = '全部'
				// this.erpId = ''
				// this.erpcColumns = [{
				// 	cateName: '全部',
				// 	id: ''
				// }, ]
				uni.request({
					url: this.baseUrl + '/orm/ormtb473/selectOilBalance',
					method: 'POST',
					dataType: 'json',
					data: {
						ORMTB410ID: this.userinfo.ORMTB410ID,
					},
					success: (res) => {
						console.log(res);
						uni.hideLoading();
						if (res.data.code == 200) {
							var data = res.data.data
							this.objItem = data
							this.jyj = data.ORMTB410CA07

						} else {
							this.$refs.uToast.show({
								title: res.data.message,
								type: 'default',
								icon: false
							})
						}
						// this.queryList()
					},
					fail: (res) => {
						this.queryList()
						uni.hideLoading();
						this.$refs.uToast.show({
							title: '服务器连接超时',
							type: 'default',
							icon: false
						})
					}
				});
			},
			queryGwcList() {
				this.materName = '全部'
				this.materId = ''
				this.materColumns = [{
					cateName: '全部',
					id: ''
				}, ]
				uni.request({
					url: this.baseUrl + '/orm/ormtb440/selectAllSettb109',
					method: 'POST',
					dataType: 'json',
					data: {
						SETTB99ID: this.erpId, //二级企业代码
						sign: 'CUS-1',
					},
					success: (res) => {
						console.log(res);
						uni.hideLoading();
						if (res.data.code == 200) {
							var data = res.data.data || []
							data.forEach(item => {
								this.materColumns.push({
									cateName: item.settb109CA00,
									id: item.settb109ID
								})
							})
						} else {
							this.$refs.uToast.show({
								title: res.data.success,
								type: 'default',
								icon: false
							})
						}
					},
					fail: (res) => {
						uni.hideLoading();
						this.$refs.uToast.show({
							title: '服务器连接超时',
							type: 'default',
							icon: false
						})
					}
				});
			},
			//查询列表
			queryList() {
				uni.showLoading({
					title: '加载中...',
					mask: true
				});
				var carNumberName = ''
				var statusName = ''
				var carNumberName = this.carNumberName == '全部物料' ? '' : this.carNumberName
				var ORMTB410ID = ''
				if (this.userinfo.sign == 'CUS-2' || this.userinfo.sign == 'CUS-3') {
					ORMTB410ID = this.userinfo.ORMTB410ID
				}
				var ORMTB417ID = ''
				if (this.userinfo.sign == 'CUS-3') {
					ORMTB417ID = this.userinfo.ORMTB417ID
				}
				var startTimeData
				var endTimeData
				if (this.datekjState == 0) {
					startTimeData = this.date[0]
					endTimeData = this.date[1]
				} else {
					startTimeData = this.dateStartStr
					endTimeData = this.dateEndStr
				}
				this.queryDataList = [];
				uni.request({
					url: this.baseUrl + '/orm/ormtb440/selectCount',
					method: 'POST',
					dataType: 'json',
					data: {
						// ORMTB400CA03: this.userinfo.ORMTB400CA03,
						wlname: carNumberName, //物料名称
						// ORMTB440CF01: statusName, //状态（-1-取消，0-待接单，1-待提货，2-提货中，3-已完成,4未完成）
						cjid: this.erpId, //二级企业代码
						ORMTB410ID: ORMTB410ID, //二级客户代码
						sign: this.userinfo.sign,
						// ORMTB440CA06: this.materId,
						// type: this.type, // 按派单时间 或 结算时间
						startTime: startTimeData, //开始时间
						endTime: endTimeData, //结束时间
						// ORMTB417ID: ORMTB417ID,
						limit: 10,
						page: this.page
					},
					success: (res) => {
						uni.hideLoading();
						if (res.data.code == 200) {
							if (!res.data.data.list || res.data.data.list == null) {
								this.orderList = []
								this.page = 1
								this.countpage = 1
								return
							}
							var data = res.data.data.list || []
							// console.log(data)
							if (this.page > 1) {
								this.orderList = [...this.orderList, ...data]
							} else {
								this.orderList = data
							}
							// this.orderList.forEach(item => {
							// 	if (item.ORMTB440CF01 == '-1') {
							// 		item.ORMTB440CF01text = '取消'
							// 	} else if (item.ORMTB440CF01 == '0') {
							// 		item.ORMTB440CF01text = '待接单'
							// 	} else if (item.ORMTB440CF01 == '1') {
							// 		item.ORMTB440CF01text = '待提货'
							// 	} else if (item.ORMTB440CF01 == '2') {
							// 		item.ORMTB440CF01text = '提货中'
							// 	} else if (item.ORMTB440CF01 == '3') {
							// 		item.ORMTB440CF01text = '完成'
							// 	} else if (item.ORMTB440CF01 == '4') {
							// 		item.ORMTB440CF01text = '已回执'
							// 	} else if (item.ORMTB440CF01 == '5') {
							// 		item.ORMTB440CF01text = '确认回执'
							// 	} else if (item.ORMTB440CF01 == '-2') {
							// 		item.ORMTB440CF01text = '申请取消'
							// 	}
							// 	if (item.ORMTB440CH01 == '0') {
							// 		item.auditText = '未审核'
							// 	} else if (item.ORMTB440CH01 == '1') {
							// 		item.auditText = '通过'
							// 	} else if (item.ORMTB440CH01 == '2') {
							// 		item.auditText = '拒绝'
							// 	}
							// 	if (item.ORMTB440CG00 == '0') {
							// 		item.ORMTB440CG00Text = '未审核'
							// 	} else if (item.ORMTB440CG00 == '1') {
							// 		item.ORMTB440CG00Text = '通过'
							// 	} else if (item.ORMTB440CG00 == '2') {
							// 		item.ORMTB440CG00Text = '拒绝'
							// 	}
							// })
							this.countpage = Math.ceil(res.data.count / 10)
							this.ordercoutObj = res.data.data
						} else {
							this.ordercoutObj = ''
							this.orderList = []
							this.page = 1
							this.countpage = 1
							this.$refs.uToast.show({
								title: res.data.message,
								type: 'default',
								icon: false
							})
						}
						if (this.countpage == this.page) {
							this.status = "nomore"
						} else {
							this.status = "loadmore"
						}
						uni.stopPullDownRefresh();
					},
					fail: (res) => {
						uni.stopPullDownRefresh();
						if (this.countpage == this.page) {
							this.status = "nomore"
						} else {
							this.status = "loadmore"
						}
						uni.hideLoading();
						this.$refs.uToast.show({
							title: '服务器连接超时',
							type: 'default',
							icon: false
						})
					}
				});
			},
			dateTransfor(date, format) {
				var o = {
					"M+": date.getMonth() + 1,
					"d+": date.getDate(),
					"h+": date.getHours(),
					"m+": date.getMinutes(),
					"s+": date.getSeconds(),
					"q+": Math.floor((date.getMonth() + 3) / 3),
					"S": date.getMilliseconds()
				};
				if (/(y+)/.test(format)) {
					format = format.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
				}
				for (let k in o) {
					if (new RegExp("(" + k + ")").test(format)) {
						format = format.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" +
							o[k]).length)));
					}
				}
				return format;
			},
		}
	};
</script>
<style lang="scss" scoped>
	.wrap-count {
		margin: 20rpx 20rpx 0;
		border-radius: 10rpx;
		background-color: #FFF;
		padding: 20rpx 0;
		font-size: 32rpx;
	}

	.wrap-count>text {
		padding: 0 30rpx;
		font-size: 34rpx;
	}

	.wrap-count>view {
		// display: flex;
		// text-align: center;
		padding: 20rpx 30rpx;
	}

	.wrap-count>view>view {
		flex: .7;
		font-size: 40rpx;
	}

	.wrap-count>view>view>text {
		color: #999;
	}

	.wrap-count .wrap-count-money {
		flex: 1;
	}

	.zanWSJ {
		padding-top: 200rpx;
	}

	.zanWSJ>image {
		display: block;
		margin: 0 auto;
		height: 360rpx;
		width: 43%;
	}

	.code-img {
		width: 500rpx;
		height: 500rpx;
		margin: 50rpx auto 0;
	}

	.code-img image {
		width: 500rpx;
		height: 500rpx;
	}

	.sendorder-loadmore {
		padding: 20rpx 0 20rpx 0;
	}

	page {
		height: 100%;
		background-color: #f2f2f2;
	}

	/*二维码弹出*/
	.qc_show {
		padding: 25rpx 15rpx 15rpx 15rpx;

		.title {
			text-align: center;
			font-size: 33rpx;
			margin-bottom: 15rpx;
			font-weight: bold;
		}

		.info {
			font-size: 30rpx;
			text-align: center;
			color: #666;
		}
	}

	/* 顶部下拉*/
	.dropdown_menu {
		padding: 24rpx 0;
		display: flex;
		justify-content: space-around;
		align-items: center;
		background-color: #FFFFFF;
		// border-top-style: solid;
		// border-top-width: 1rpx;
		// border-top-color: #e1e1e1;

		.icon_left_margin {
			margin-left: 20rpx;
		}
	}

	.order {
		width: 710rpx;
		background-color: #ffffff;
		margin: 0rpx auto;
		// border-radius: 20rpx;
		box-sizing: border-box;
		padding: 0rpx 20rpx;
		// font-size: 28rpx;
		border-bottom-width: 1rpx;
		border-bottom-color: #eee;
		border-bottom-style: solid;
		line-height: 60rpx;

		.top {
			display: flex;
			justify-content: space-between;
			// border-bottom-width: 1rpx;
			// border-bottom-color: #eee;
			// border-bottom-style: solid;
			// padding-bottom: 20rpx;
			// padding-top: 20rpx;

			.left {
				display: flex;
				align-items: center;

				.store {
					margin: 0 10rpx;
					font-size: 28rpx;
					color: #666;
				}
			}

			.right {
				color: #058cff;
			}
		}

		.item {
			display: flex;
			margin: 20rpx 0 0;

			.left {
				margin-top: 30rpx;
				margin-right: 30rpx;
				text-align: center;

				.license_plate {
					width: 130rpx;
					text-align: center;
					font-size: 26rpx;
					margin-top: 10rpx;
				}
			}

			.content {
				.title {
					font-size: 32rpx;
					line-height: 50rpx;
				}

				.type {
					margin: 10rpx 0;
					font-size: 32rpx;
					color: #303133;
				}

				.btn_mid {
					margin-left: 330rpx;
					margin-top: -80rpx;
					padding: 0rpx 25rpx;
					height: 70rpx;
					width: 180rpx;
					top: 30rpx;
				}
			}
		}

		.total {
			margin-top: 20rpx;
			text-align: right;
			font-size: 24rpx;

			.total-price {
				font-size: 32rpx;
			}
		}

		.bottom {
			display: flex;
			margin-top: 40rpx;
			padding: 0 10rpx;
			justify-content: space-between;
			align-items: center;

			.btn {
				line-height: 52rpx;
				width: 160rpx;
				border-radius: 26rpx;
				border: 2rpx solid $u-border-color;
				font-size: 26rpx;
				text-align: center;
				color: $u-type-info-dark;
			}

			.evaluate {
				color: $u-type-warning-dark;
				border-color: $u-type-warning-dark;
			}
		}
	}

	.centre {
		text-align: center;
		margin: 200rpx auto;
		font-size: 32rpx;

		image {
			width: 164rpx;
			height: 164rpx;
			border-radius: 50%;
			margin-bottom: 20rpx;
		}

		.tips {
			font-size: 24rpx;
			color: #999999;
			margin-top: 20rpx;
		}

		.btn {
			margin: 80rpx auto;
			width: 200rpx;
			border-radius: 32rpx;
			line-height: 64rpx;
			color: #ffffff;
			font-size: 26rpx;
			background: linear-gradient(270deg, rgba(249, 116, 90, 1) 0%, rgba(255, 158, 1, 1) 100%);
		}
	}

	.wrap {
		display: flex;
		flex-direction: column;
		height: calc(100vh - var(--window-top));
		width: 100%;
		background-color: #fff;
		overflow: hidden;
	}

	.swiper-box {
		// flex: 1;
		// margin-bottom: 39px;

		height: 342rpx;
		position: relative;
		top: -6rpx;

	}

	.swiper-item {
		height: 100%;
	}

	.sendrecord {
		min-height: 100vh;
		width: 100vw;
		background-color: #efeff4;
	}

	.sendrecord-nav-fixed {
		position: fixed;
		top: 0;
		width: 100%;
		z-index: 999;
		background-color: #FFF;
	}

	.sendrecord-nav-top-navbar-inner {
		/* display: flex; */
		position: relative;
	}

	.sendrecord-nav-top-navbar-inner text {
		position: absolute;
		top: 0;
		left: 0;
		width: 100rpx;
		text-align: center;
		font-size: 34rpx;
		z-index: 1;
	}

	.sendrecord-nav-top-navbar-inner view {
		flex: 1;
		text-align: center;
		font-size: 34rpx;
		font-weight: 600;
	}

	.sendrecord-nav-option {
		height: inherit;
		display: flex;
		font-size: 30rpx;
		color: #333;
		text-align: center;
		overflow: hidden;
	}

	.sendrecord-nav-option-rep {
		position: relative;
		flex: 1;
		padding: 0 55rpx 0 20rpx;
	}

	.sendrecord-nav-option-rep .iconxiala {
		position: absolute;
		top: 0;
		right: 0;
		height: inherit;
		line-height: inherit;
		font-size: 22rpx;
		margin-left: 10rpx;
		color: #999;
	}

	.sendrecord-nav-option-screening {
		flex: .35;
	}

	.sendrecord-nav-option-screening .iconshaixuan {
		font-size: 30rpx;
		margin-left: 10rpx;
	}

	.sendrecord-count {
		background-color: #fff;
	}

	.sendrecord-count-p {
		position: relative;
		border-radius: 20rpx 20rpx 0 0;
		height: 25vh;
		padding: 20rpx 40rpx;
		background-color: #efeff4;
	}

	.sendrecord-count-p image {
		width: 100%;
		height: 100%;
	}

	.sendrecord-count-p-content {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		padding: 20rpx 70rpx;
		box-sizing: border-box;
	}

	.sendrecord-count-p-content-title {
		padding: 40rpx 0 30rpx 0;
		font-size: 32rpx;
		color: #ffd919;
	}

	.sendrecord-count-p-num {
		display: flex;
		color: #FFF;
		font-size: 30rpx;
	}

	.sendrecord-count-p-num>view>text {
		font-size: 26rpx;
		color: #e3e3e3;
	}

	.sendrecord-count-p-num-money,
	.sendrecord-count-p-num-weight {
		flex: 1;
	}

	.sendrecord-count-p-num-time {
		flex: .5;
	}

	.sendrecord-table-content {
		padding: 0 30rpx;
	}

	.sendrecord-table-content-card {
		border-radius: 25rpx;
		background-color: #FFF;
		color: rgba(153, 153, 153, 1);
	}

	.sendrecord-table-content-card+.sendrecord-table-content-card {
		margin-top: 15rpx;
	}

	.sendrecord-table-content-card-title {
		display: flex;
		justify-content: space-between;
		height: 80rpx;
		line-height: 80rpx;
		padding: 0 30rpx;
		font-size: 30rpx;
		border-bottom: 1px solid rgba(230, 230, 230, 1);
		font-weight: 400;
	}

	.sendrecord-table-content-card-title-tiem {}

	.sendrecord-table-content-card-title-details {
		font-size: 30rpx;
		color: rgba(0, 162, 243, 1);
	}

	.sendrecord-table-content-card-text {
		position: relative;
		display: flex;
		padding: 0 30rpx;
	}

	.sendrecord-table-content-card-text-image {
		position: absolute;
		left: 0;
		top: 2rpx;
		width: 120rpx;
		height: 70rpx;
	}

	.sendrecord-table-content-card-text-image>image {
		width: 100%;
		height: 100%;
		transform: rotate(-25deg);
	}

	.sendrecord-table-content-card-text-left {
		display: flex;
		align-items: center;
		margin-right: 40rpx;
		text-align: center;
	}

	.sendrecord-table-content-card-text-left .iconfont {
		font-size: 70rpx;
		color: rgba(102, 102, 102, 1);
	}

	.sendrecord-table-content-card-text-left-car {
		line-height: 50rpx;
		font-size: 26rpx;
		color: rgba(102, 102, 102, 1);
		font-weight: 400;
	}

	.sendrecord-table-content-card-text-right {
		flex: 1;
		color: #333;
		font-size: 26rpx;
		line-height: 40rpx;
		padding-bottom: 30rpx;
		font-weight: 400;
	}

	.sendrecord-table-content-card-text-right>view {
		margin-top: 10rpx;
		overflow: hidden;
	}

	.sendrecord-table-content-card-text-right-details {
		display: flex;
		justify-content: space-between;
	}

	.sendrecord-table-content-card-text-right-details text {
		display: inline-block;
		max-width: 200rpx;
		overflow: hidden;
	}

	.sendrecord-table-content-card-text-right-details text+text {
		margin-left: 20rpx;
	}

	.sent-changeDate-text {
		color: rgba(102, 102, 102, 1);
		font-size: 28rpx;
		padding-left: 42rpx;
	}

	.sent-dateChange {
		margin-top: 28rpx;
		// display: flex;
		// flex-direction: row;
		// align-items: left;
		padding-left: 42rpx;
		font-size: 26rpx;
	}

	.sent-dateChange-mask {
		position: relative;
	}

	.sent-dateChange-mask>view {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 9;
	}

	.sent-startDate {
		// width: 231rpx;
		height: 45rpx;
		// border: 2rpx solid #e3e3e3;
		color: #3366ff;
		font-size: 26rpx;
		text-align: center;
		padding: 0 20rpx;
	}

	.sent-startDate-active {
		// height: 77rpx;
		// border-color: rgba(0, 161, 241, 0.5);
		// color: rgba(0, 161, 241, 1);
	}

	.sent-startDate input {
		width: 100%;
		height: 100%;
		padding: 0;
		margin: 0;
		background: 0;
		border: 0;
		text-align: center;
	}

	.dateLine {
		width: 55rpx;
		height: 2rpx;
		background: rgba(205, 205, 205, 1);
	}

	.changeCarnum>view:first-child {
		color: rgba(102, 102, 102, 1);
		font-size: 28rpx;
		padding: 0 42rpx;
	}

	.carNumReset {
		width: 120rpx;
		text-align: center;
		color: rgba(0, 161, 241, 1);
		margin-left: 60rpx;
	}

	.electionMonth {
		width: 100rpx;
		height: 67rpx;
		line-height: 67rpx;
		text-align: center;
		background: rgba(0, 161, 241, 1);
		color: rgba(255, 255, 255, 1);
		border-radius: 6rpx;
		margin-left: 50rpx;
	}

	.changeQiye .xuanzeqiye {
		color: rgba(102, 102, 102, 1);
		font-size: 28rpx;
		padding: 0 42rpx;
	}

	.kehuName {
		width: 300rpx;
		height: 60rpx;
		line-height: 60rpx;
		border: 2rpx solid rgba(153, 153, 153, 0.5);
		color: rgba(153, 153, 153, 1);
		font-size: 26rpx;
		padding: 0;
		text-align: center;
	}

	.changeWuliao view:first-child {
		color: rgba(102, 102, 102, 1);
		font-size: 28rpx;
		padding: 0 42rpx;
	}

	.changeButton {
		display: flex;
		padding: 56rpx 30rpx 100rpx 39%;
	}

	.changeButton button {
		padding: 0;
		width: 223rpx;
		height: 60rpx;
		line-height: 60rpx;
		border-radius: 0;
		font-size: 30rpx;
		color: rgba(255, 255, 255, 1);
	}

	.changeButton button:first-child {
		background: rgba(0, 202, 243, 1);
	}

	.changeButton button:last-child {
		background: rgba(0, 161, 241, 1);
	}

	.sent-changeDate,
	.changeCarnum,
	.changeQiye,
	.changeWuliao {
		width: 100%;
		border-bottom: 2rpx solid rgba(230, 230, 230, 1);
		padding: 42rpx 0;
	}

	.sent-dateChange-mask .orActive {
		color: rgba(0, 161, 241, 1) !important;
		border: 2rpx solid rgba(0, 161, 241, 1) !important;
	}

	.car-search-top-title {
		display: flex;
	}

	.car-search-top-title>view:first-child {
		width: 150rpx;
		height: 70rpx;
		line-height: 70rpx;
		text-align: center;
		font-size: 30rpx;
		color: #999;

	}

	.car-search-fixed {
		position: fixed;
		top: 0;
		width: 100%;
		z-index: 99;
		background-color: #fff;
	}

	.car-search-top-title-search {
		position: relative;
		flex: 1;
		padding: 0 40rpx 0 0;
	}

	.car-search-top-title-search>view {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 19;
	}

	.car-search-top-title-search-box {
		width: 90%;
	}

	.car-search-li {
		height: 70rpx;
		line-height: 70rpx;
		padding-left: 60rpx;
		font-size: 30rpx;
		color: #333;
		border-bottom: 2rpx solid #e3e3e3;
	}

	// 统计
	.statistics-banner-box {
		width: 100%;
		height: 252rpx;
		padding: 10rpx 0;
		background-color: rgba(204, 204, 204, .3);
	}

	.statistics-banner-title-box {
		padding: 30rpx 0 50rpx 40rpx;
		background-color: #fff;
	}

	.statistics-banner-title {
		// margin: 60rpx 0 50rpx 40rpx;
		// margin: 60rpx 0 50rpx 40rpx;
		padding-bottom: 20rpx;
		font-size: 42rpx;
		color: rgba(51, 51, 51, 1);
	}

	.statistics-banner-list {
		width: 100%;
		display: flex;
		justify-content: space-between;
		padding: 0 40rpx;
		flex-direction: row;
		align-items: center;
	}

	.statistics-banner-name {
		font-size: 26rpx;
		// color: rgba(255, 255, 255, .8);
	}

	.statistics-banner-number {
		font-size: 36rpx;
		// color: rgba(255, 255, 255, 1);
	}

	.ERcode-orderinfo {
		font-size: 36rpx;
		color: #333;
		margin-bottom: 65rpx;
		padding: 0 28rpx;
	}

	.ERcode-orderinfo>view {
		// height: 44rpx;
		line-height: 44rpx;
		overflow: hidden;
	}

	.ERcode-orderinfo-view {
		border-bottom: 2rpx solid #e3e3e3;
		padding-bottom: 20rpx;
	}

	.ERcode-orderinfo-view>text:first-child {
		font-size: 44rpx;
		font-weight: 600;
		width: 255rpx !important;
	}

	.ERcode-orderinfo>view+view {
		margin-top: 15rpx;
	}

	.ERcode-orderinfo text {
		display: inline-block;
		font-size: 36rpx;
		width: 190rpx;
		text-align: right;
		margin-right: 21rpx;
		color: #666;
	}

	uni-button:after {
		border: none;
	}

	.tj {
		width: 100%;
		position: fixed;
		top: 450rpx;
	}

	.kjxz_date {
		display: flex;
		justify-content: center;
		align-items: center;
		background-color: #fff;
		padding-bottom: 24rpx;
		padding-left: 26rpx;
		border-top: 2rpx solid #E3E3E3;
		padding-top: 24rpx;
	}

	.pulic_cursor {
		color: #666;
		display: inline-block;
		// padding: 20rpx;
		width: 100rpx;
		padding: 5rpx 0;
		text-align: center;
	}

	.public_dateActive {
		background-color: #058cff;
		border-radius: 30rpx;
		color: #fff;
	}

	.u-section__right-info {
		font-size: 30rpx !important;
	}
</style>

<style>
</style>